package com.github.skystardust.lotteryex.hooks;

import org.black_ixx.playerpoints.PlayerPoints;
import org.black_ixx.playerpoints.PlayerPointsAPI;
import org.bukkit.Bukkit;

public class PlayerPointsHook {
    private PlayerPointsAPI playerPointsAPI;

    public boolean setupPlayerPoints() {
        if (!Bukkit.getPluginManager().isPluginEnabled("PlayerPoints")) {
            return false;
        }
        this.playerPointsAPI = ((PlayerPoints) Bukkit.getPluginManager().getPlugin("PlayerPoints")).getAPI();
        return playerPointsAPI != null;
    }

    public PlayerPointsAPI getPlayerPointsAPI() {
        return playerPointsAPI;
    }
}
